import Layout from '@/components/layout'

export let resRouter =
    [
        { path: '/', redirect: '/home', meta: { title: '隐藏', myicon: 'document', hidden: false } },
        {
            path: '/',
            name: 'Layout',
            component: Layout,
            meta: { title: '下拉打开', myicon: 'document', hidden: true },
            children: [
                {
                    path: '/home',
                    name: 'home',
                    component: () => import('@/components/views/home.vue'),
                    meta: { title: '二级菜单', myicon: 'document', hidden: true },
                    children: [
                        {
                            path: '/home/home1',
                            name: 'home1',
                            component: () => import('@/components/views/home.vue'),
                            meta: { title: '2', myicon: 'document', hidden: true },
                        },
                        {
                            path: '/home/edit1',
                            name: 'edit1',
                            component: () => import('@/components/views/home.vue'),
                            meta: { title: '5', myicon: 'document', hidden: true },
                        },]
                },
                {
                    path: '/edit',
                    name: 'edit',
                    component: () => import('@/components/views/home.vue'),
                    meta: { title: '5', myicon: 'document', hidden: true },
                },
            ]
        },
        {
            path: '/login',
            name: 'Login',
            component: () => import('@/components/views/login.vue'),
            meta: { title: '3', myicon: 'document', hidden: false },
        }, {
            path: '/register',
            name: 'register',
            component: () => import('@/components/views/register.vue'),
            meta: { title: '4', myicon: 'document', hidden: false },
        }
    ]

